home *** CD-ROM | disk | FTP | other *** search
/ BBS Toolkit / BBS Toolkit.iso / pc_board / pcbss30.zip / BOARD.BAT < prev    next >
DOS Batch File  |  1992-11-04  |  2KB  |  87 lines

  1.  
  2. :
  3. : Make sure the network is loaded
  4. :
  5. if "%LAN_LOADED" != "1"   call startnet
  6.  
  7. :
  8. : Setup misc env var's
  9. :
  10. SET NODE=3
  11.  
  12. :
  13. : Setup PCBSuperScript env var's. Used by door driver files and SS
  14. : scripts files. They are NOT used by SS.EXE.
  15. :
  16. : SSDRIVE         The drive name where SS.EXE is located
  17. : SSDIR           The path to where SS.EXE is located
  18. : SS_PRG_DIR      The drive and path to where SS.EXE is located
  19. : SS_DEF_DIR      The drive and path to where definition files are located
  20. : SS_LOG_DIR      The drive and path to where log files are located
  21. :
  22. SET SSDRIVE=K:
  23. SET SSDIR=\DOOR\SS
  24. SET SS_PRG_DIR=%SSDRIVE%%SSDIR%
  25. SET SS_DEF_DIR=%SSDRIVE%%SSDIR%\def
  26. SET SS_LOG_DIR=%SSDRIVE%%SSDIR%\log
  27.  
  28. :
  29. : If you set the env var 'SSERRLOG' to the name of a file, it will be used
  30. : to log any errors that occur during the execution of the script.
  31. :
  32. SET SSERRLOG=%SSDRIVE%%SSDIR%\sserr.log
  33.  
  34. :
  35. : If you run *any* doors as a "SWAP" door, you *must* setup the PCBoard env
  36. : vars before loading PCBoard. This is due to the swapper code that CDC uses
  37. : in PCboard; it will give any shell process a copy of the environment as it
  38. : was *before* PCBoard was loaded. Therefor, any env var's that PCBoard sets
  39. : prior to a shell (i.e. running a door) are not "seen" by the shell process
  40. : (i.e. the door program).
  41. :
  42. SET PCBDRIVE=F:
  43. SET PCBDIR=\PCB
  44. SET PCBDAT=%PCBDRIVE%%PCBDIR%\PCBOARD.DAT
  45. SET PCBNODE=3
  46. SET PCBEXE=pcb145.exe
  47.  
  48. :
  49. : run pcboard...
  50. :
  51. : NOTE: If you don't use 4Dos (or Norton's NDos), comment out the line
  52. :       below and replace with:
  53. :
  54. :       %PCBDRIVE%
  55. :       cd %PCBDIR%
  56. :
  57. pushd %PCBDRIVE%%PCBDIR%
  58. if exist remote.bat   rename  remote.bat remote.sys
  59. if exist event.bat    rename  event.bat  event.sys
  60. if exist door.bat     del     door.bat
  61. if exist endpcb       del     endpcb
  62. %PCBEXE
  63. if exist remote.bat   remote
  64. if exist door.bat     door
  65. if exist event.bat    event
  66. if exist endpcb       goto end
  67. board
  68.  
  69. :end
  70. :
  71. : Clean up environment and quit to DOS (or wherever we came from)
  72. :
  73. : NOTE: If you don't use 4Dos (or Norton's NDos), comment out the line
  74. :       below.
  75. popd
  76. SET SSDRIVE=
  77. SET SSDIR=
  78. SET SSERRLOG=
  79. SET SS_PRG_DIR=
  80. SET SS_DEF_DIR=
  81. SET SS_LOG_DIR=
  82. SET PCBDRIVE=
  83. SET PCBDIR=
  84. SET PCBDAT=
  85. SET PCBNODE=
  86. SET PCBEXE=
  87.